<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>思云课堂</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/ztree/css/metroStyle.css">
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/ztree/js/jquery.ztree.core.min.js"></script>
    <script src="/ztree/js/jquery.ztree.excheck.min.js"></script>
    <script src="/ztree/js/jquery.ztree.exedit.min.js"></script>
    <link rel="stylesheet" href="/css/goods/goods-table.css">
</head>
<style>
    .layui-table-view .layui-table[lay-size="lg"] .layui-table-cell {
        height: inherit;
        line-height: 50px;
    }

    div#rMenu {
        position: fixed;
        visibility: hidden;
        top: 0;
        background-color: #fff;
        text-align: left;
        border: 1px solid #c9caca;
        box-shadow: 0 0 2px #c9caca;
        padding: 2px 0;
        z-index: 999;
    }

    div#rMenu ul li {
        margin: 1px 0;
        padding: 0 5px;
        cursor: pointer;
        list-style: none;
        height: 30px;
        background-color: #fff;
    }
</style>
<body οnlοad="opener.location.reload()">
<div id="box">
    <div class="layui-row">
        <div class="layui-elem-quote" style="height: 39px">
            <span id="goodsTable" style="width: 65%;height: 39px;box-sizing: border-box;">商品列表</span>
            <div style="float:right;box-sizing: border-box;">
                <button class="layui-btn" onclick="javascript:Refresh();"><i class="layui-icon layui-icon-refresh"></i>刷新
                </button>
                <button class="layui-btn" onclick="javascript:goBack();"><i class="layui-icon layui-icon-left"></i>返回
                </button>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-card">
            <div class="layui-card-header" style="margin-top: 5px">
                <h3 style="float: left"><i class="layui-icon layui-icon-search"></i>筛选查询</h3>
                <button style="float: right" class="layui-btn" onclick="retrieval()">高级检索</button>
            </div>
            <div class="layui-card-body">
                <form class="layui-form">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">输入搜索：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" placeholder="请输入商品名称" name="productName">
                            </div>
                        </div>
                        <div class="layui-inline search">
                            <label class="layui-form-label">商品状态：</label>
                            <div class="layui-input-inline">
                                <select name="productSate" id="productSate">
                                    <option value="">请选择商品状态</option>
                                    <option value="1">上架</option>
                                    <option value="2">下架</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline search">
                            <label class="layui-form-label">商品标签：</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" type="text" placeholder="请输入商品标签" name="productLabel">
                            </div>
                        </div>
                        <div class="layui-inline search" style="float: right">
                            <button class="layui-btn" type="button" lay-submit lay-filter="search">
                                <i class="layui-icon layui-icon-search">搜索</i>
                            </button>
                            <button class="layui-btn layui-btn-danger" type="reset" id="reset">
                                <i class="layui-icon layui-icon-refresh">重置</i>
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="" style="float: left;width: 25%">
            <ul id="ztree" class="ztree" style="margin-top: 20px;margin-left: 40px"></ul>
        </div>
        <div class="" style="float: left;width: 75%">
            <table class="layui-table" id="table"></table>
        </div>
    </div>
    <div id="toptool" class="layui-hide">
        <p class="layui-icon" style="float: left">&#xe649; 数据列表</p>
        <div style="float: right">
            <button type="button" class="layui-btn " onclick="couImport()" id="test1">
                <i class="layui-icon">&#xe62f;</i>导入
            </button>
            <button class="layui-btn layui-icon layui-icon-add-circle" onclick="goAdd()"> 添加</button>
        </div>
    </div>
    <div id="rMenu">
        <ul>
            <li id="m_add" onclick="addTreeNode();">增加节点</li>
            <li id="m_del" onclick="removeTreeNode();">删除节点</li>
            <li id="m_edit" onclick="edit();">编辑节点</li>
        </ul>
    </div>
    <input type="hidden" name="createId" th:value="${session.user.acatarUrl}" value=""/>
    <input type="hidden" name="updateId" th:value="${session.user.acatarUrl}" value=""/>
</div>
</body>
<script type="text/javascript" src="/js/goods/goods-table.js"></script>
</html>